package org.gourpg.model.dictionary;


import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;

/**
 * 字典工程配置实体
 */

public class NounClassDetail {
    /**
     * 字典工程ID，字典工程的主键
     */
    private Integer nounClassId;
    /**
     * 字典工程对象类全路径
     */
    private String nounClassPath;
    /**
     * 字典工程对应的数据表
     */
    private String nounTableName;
    /**
     * 获取id text parentid的数据库脚本
     */
    private String nounGetSql;
    public NounClassDetail() {
    }

    public NounClassDetail(Integer nounClassId, String nounClassPath, String nounTableName, String nounGetSql) {
        this.nounClassId = nounClassId;
        this.nounClassPath = nounClassPath;
        this.nounTableName = nounTableName;
        this.nounGetSql = nounGetSql;
    }

    @Override
    public String toString() {
        return MoreObjects.toStringHelper(this)
                .add("nounClassId", nounClassId)
                .add("nounClassPath", nounClassPath)
                .add("nounTableName", nounTableName)
                .add("nounGetSql", nounGetSql)
                .toString();
    }

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        NounClassDetail that = (NounClassDetail) o;
        return Objects.equal(getNounClassId(), that.getNounClassId()) && Objects.equal(getNounClassPath(), that.getNounClassPath()) && Objects.equal(getNounTableName(), that.getNounTableName()) && Objects.equal(getNounGetSql(), that.getNounGetSql());
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(getNounClassId(), getNounClassPath(), getNounTableName(), getNounGetSql());
    }

    public Integer getNounClassId() {
        return nounClassId;
    }

    public void setNounClassId(Integer nounClassId) {
        this.nounClassId = nounClassId;
    }

    public String getNounClassPath() {
        return nounClassPath;
    }

    public void setNounClassPath(String nounClassPath) {
        this.nounClassPath = nounClassPath;
    }

    public String getNounTableName() {
        return nounTableName;
    }

    public void setNounTableName(String nounTableName) {
        this.nounTableName = nounTableName;
    }

    public String getNounGetSql() {
        return nounGetSql;
    }

    public void setNounGetSql(String nounGetSql) {
        this.nounGetSql = nounGetSql;
    }
}
